import java.util.Scanner;

    public class ArrayInputAndPrint{
        public static void main(String[] args) {
            int[] arr=new int[10];
            Scanner scanner=new Scanner(System.in);

            for (int i = 0; i < 10; i++) {
                System.out.println("请输入第" + (i+1)+"个数字：");
                arr[i]=scanner.nextInt();
            }
            System.out.println("数组中元素为：");
            for (int num:arr) {
                System.out.println(num);
            }
            scanner.close();
        }
    }

